package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.HkServerDao;
import wqh.domain.HkServer;
import wqh.service.HkServerService;

import java.util.List;

/**
 * Created by devts on 2017/1/5.
 */
@Service("hkServerService")
public class HkServerServiceImpl implements HkServerService {

    private final HkServerDao dao;

    @Autowired
    public HkServerServiceImpl(HkServerDao hkServerDao) {
        this.dao = hkServerDao;
    }

    public void save(HkServer entity) {
        this.dao.save(entity);
    }

    public void update(HkServer entity) {
        this.dao.update(entity);
    }

    public void delete(HkServer entity) {
        this.dao.delete(entity);
    }

    public void deleteAll() {
        this.dao.deleteAll();
    }

    public List<HkServer> findAll() {
        return this.dao.findAll();
    }

    public HkServer findById(Long id) {
        return this.dao.findById(id);
    }
}
